﻿using System;
using System.Collections.Generic;
using System.Text;
using EnvDTE80;
using TSVNAddin.VS;

namespace TSVNAddinUtils
{
	public class DTEInstanceCreator
	{
		public virtual DTEAdapter CreateInstance()
		{
			Type type = System.Type.GetTypeFromProgID("VisualStudio.DTE.9.0", true);
			DTE2 dte = (DTE2)System.Activator.CreateInstance(type, true);

			return new DTEAdapter(dte);
		}
	}
}
